package com.example.streamtransport.Listener;

import com.example.streamtransport.Event.OrderEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class Handler implements ApplicationListener<OrderEvent> {
    @Override
    @Async
    public void onApplicationEvent(OrderEvent event)
    {
        var a=event.Name;
    }
}
